#include <cstdint>
#include <nice2d/components/instanceid.h>

static uint32_t currentID = 0;

class InstanceIDData
{
public:
    uint32_t id;
};

InstanceID::InstanceID(NodePointer object):
    Component(object),
    data(new InstanceIDData)
{
    data->id = currentID++;
}

uint32_t InstanceID::getID() const
{
    return data->id;
}
